import request from '@/utils/request.js'

// 登录
export function userPhoneLoginApi(data) {
	return request({
		url: "/users/UsersWechatLogin",
		method: "post",
		data: data
	});
}

// 更改用户昵称
export function editUserNameApi(data) {
	return request({
		url: "/users/UsersEdit_name",
		method: "post",
		data: data
	});
}

// 更改用户头像
export function editUserSculptureApi(data) {
	return request({
		url: "/users/UsersEdit_sculpture",
		method: "post",
		data: data
	});
}

// 获取用户信息
export function getUserInfoApi(data) {
	return request({
		url: "/users/UsersInfo",
		method: "post",
		data: data
	});
}

// 获取首页分类
export function getBigClassApi(data) {
	return request({
		url: "/business/bigClassGet",
		method: "get",
		data: data
	});
}
// 首页商家列表
export function getShopListApi(data) {
	return request({
		url: "/business/get_Bussines",
		method: "get",
		data: data
	});
}
// 获取分类详情
export function getClassDetailApi(data) {
	return request({
		url: "/business/UseClass_get_Bussines",
		method: "get",
		data: data
	});
}
// 商家商品
export function getShopDetailApi(data) {
	return request({
		url: "/business/get_Commodity",
		method: "get",
		data: data
	});
}
// 商家分类列表
export function getShopClassListApi(data) {
	return request({
		url: "/business/BusinessGetClass",
		method: "get",
		data: data
	});
}
// 根据分类查询订单详情
export function getShopClassDetailListApi(data) {
	return request({
		url: "business/get_Commodity",
		method: "get",
		data: data
	});
}
// 下单
export function addOrderApi(data) {
	return request({
		url: "/order/orderAdd",
		method: "post",
		data: data
	});
}
// 获取我的商品订单
export function getMyOrderListApi(data) {
	return request({
		url: "/order/orderList",
		method: "post",
		data: data
	});
}
// 添加评论
export function userCommentApi(data) {
	return request({
		url: "/comment/CommentAdd",
		method: "post",
		data: data
	});
}
// 删除评论
export function deleteCommentApi(data) {
	return request({
		url: "/comment/CommentDeleted",
		method: "post",
		data: data
	});
}
// 对店家投诉
export function complainBusinessAddApi(data) {
	return request({
		url: "/complain/ComplainBusinessAdd",
		method: "post",
		data: data
	});
}
// 撤销店家投诉
export function complainBusinessDeletedApi(data) {
	return request({
		url: "/complain/ComplainBusinessDeleted",
		method: "post",
		data: data
	});
}
// 对骑手投诉
export function complainRiderAddApi(data) {
	return request({
		url: "/complain/ComplainRiderAdd",
		method: "post",
		data: data
	});
}
// 撤销对骑手投诉
export function complainRiderDeletedApi(data) {
	return request({
		url: "/complain/ComplainRiderDeleted",
		method: "post",
		data: data
	});
}